local MatchStarted = false
local AccountingStarted = false
local AccountingPos = 0.0
local function getInfo(um)
	MatchStarted = um:ReadBool()
	AccountingStarted = um:ReadBool()
	AccountingPos = um:ReadFloat()
end
usermessage.Hook("HUDreceiver", getInfo)

local function HUDPaint()
	local x, y = ScrW()/2, 10
	if AccountingStarted then
		draw.WordBox( 8, x, y, "Le match commence dans  ".. Config.AccouningLenght - math.floor(CurTime() - AccountingPos), "Default", Color(50,50,75,100), Color(255,255,255,255) )
	elseif MatchStarted then
		draw.WordBox( 8, x, y, "Le match est en cours", "Default", Color(50,50,75,100), Color(255,255,255,255) )
	elseif team.NumPlayers(TEAM_WARRIORS) < VAR.MinWarriors then
		draw.WordBox( 8, x, y, "En attente de participants", "Default", Color(50,50,75,100), Color(255,255,255,255) )
	end
end
hook.Add("HUDPaint", "arenahud", HUDPaint)